Epic interview question

Tested programming, programming theory, math, and speed.