Merge Intervals Leetcode Solution