Canva interview question

To write a unit function