Pergunta de entrevista da empresa Marks & Spencer

Solve a medium difficulty coding challenge