Pergunta de entrevista da empresa Riot Games

Simple question from string search.