InterviewBit Problems   Next Number II : Solved