Canva interview question

Java basic and leet code