Maximum Overlapping Intervals Leetcode Solutions Java