InterviewBit Problems   The square game : Solved