Longest Interval Sequence - Coding problem | OneNoughtOne