Maximum Overlapping Intervals Leetcode Javascript Solution