Find Maximum Overlapping Intervals Leetcode Javascript Practice