Interval Scheduling Problem Leetcode Two Sum Answer