Actuate interview question

Simple, with some programming on basic comp science stuff