Domanda di colloquio di Bloomberg

Toy problems on HackerRank, difficulty aimed at undergrads