from http://www.reddit.com/r/iOSChallenges/comments/2ct0pg/06082014_ios_challenge_1_sample_interview/