InterviewBit Problems   Ugly Pairs : Solved