Pregunta de entrevista de Moody's

Leetcode interval related question medium-hard level