Smartsheet interview question

Coding a very simple game