NVIDIA interview question

Leetcode question about intervals (time intervals)