Pregunta de entrevista de Canva

Coding question which was pretty easy