Epic interview question

Math, logic, and programming questions.