Pergunta de entrevista da empresa UKG

The DSA question was from Leetcode and was merging intervals.