Guidewire interview question

Took test on basic programming/logic skills