Sigmoid interview question

I only gave the coding round.