Canva Interview Question

Basic logic and theory of Java