InterviewBit Problems   Disjoint Intervals : Solved