https://romankurnovskii.com/en/tracks/algorithms-101/leetcode/hard/1851/
1851. Minimum Interval to Include Each Query