https://practice.geeksforgeeks.org/problems/overlapping-intervals/0