Pregunta de entrevista de The Trade Desk

straight from leetcode hard section: skyline problem