Input: arr[] = [[1, 3], [2, 4], [3, 5], [7, 9]]
Output: [[5, 7]]
Explanation: The only interval which doesn’t overlaps with the other intervals is [5, 7].
Input: arr[][] = [[1, 3], [2, 6], [8, 10], [15, 18]]
Output: [[6, 8], [10, 15]]
Explanation: There are two intervals which don’t overlap with other intervals are [6, 8], [10, 15].
Input: arr[][] = [[1, 3], [9, 12], [2, 4], [6, 8]]
Output: [[4, 6], [8, 9]]
Explanation: There are two intervals which don’t overlap with other intervals are [4, 6], [8, 9].