Appirio interview question

Code questions on the technical exercise