Non Overlapping Intervals Leetcode