Canva interview question

Coding question which was pretty easy