Pregunta de entrevista de Epic

Basic math questions (SAT-level), 4 programming problems.