Interval Scheduling Problem Leetcode Two Sum 2