Epic interview question

Some technical problem solving required on programming test.