ReliaQuest interview question

Standard coding question to view more how I work through problems