InterviewBit Problems   NEXTGREATER : Solved