Apptentive interview question

Code to a problem and design questions