Pergunta de entrevista da empresa The Trade Desk

straight from leetcode hard section: skyline problem