Maximum Overlapping Intervals Leetcode Problems Javascript