Riot Games interview question

Code challenge was very basic