Pregunta de entrevista de Marks & Spencer

Solve a medium difficulty coding challenge