Sigmoid interview question

coding round is to be discussed