Pregunta de entrevista de Google

Non overlapping interval leetcode question