MangoApps interview question

Coding problem to solve in person interview.