Pergunta de entrevista da empresa Hopper

Solve a medium-difficulty coding challenge