Interval Scheduling Problem Leetcode Two Sums