Solution for Riot Games test

Submitting solution