Non Overlapping Intervals Leetcode Solution