Pergunta de entrevista da empresa Robinhood

NDA, but leetcode should be good.