Domanda di colloquio di Riot Games

Had me build out a fairly simple algorithm.