Pregunta de entrevista de Ironclad

Had to solve an intermediate code challenge