Interval Scheduling Problem Leetcode Two Pointers