Insert Intervals Leetcode Two Sum Java