Epic Interview Question

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