Epic interview question

Basic Math questions. The programming tasks were all pretty long.