Question d’entretien chez Robinhood

Four algorithm problems that can be found on Leetcode discussion.