Pregunta de entrevista de Backroads

try to solve some case scenario