Non-overlapping Intervals - Medium Python Intervals Interview Problem | Unnested