Pergunta de entrevista da empresa IXL Learning

Hackerrank coding challenge, standard leetcode style questions.