Smallest list of ranges that includes all the numbers which are not in array
Given a range [l, r] and an array arr[] of unique integers and l <= arr[i] <= r. The task is to find the smallest list of ranges that includes all the numbers that are not in the given array within a certain range. Example: Input: arr = {3, 5, 10, 11, 12, 15} , l = 1, h = 20Output: {1, 2} {4,