the ball will just hit the edge of nth step. Find the value of n.