Domanda di colloquio di The Trade Desk

straight from leetcode hard section: skyline problem