Pregunta de entrevista de Xeratic

We were given a case and needs to code