Non-Overlapping Intervals - Leetcode 435 - Python