Domanda di colloquio di Robinhood

Some algorithm problems regarding dictionary and heap