Smartsheet Interview Question

Coding a very simple game