Pergunta de entrevista da empresa Canva

Coding question which was pretty easy