Pregunta de entrevista de Epic

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