InterviewBit Problems   Gates of Heaven : Solved