Canva interview question

Implement a simple game (algorithm and data structure)