LinQuest interview question

Programming question to break down my thought process in attacking the problem.