Solution to the Frontend coding test for Riot Games