Sprig Interview Question

Implement logic for a game