Epic interview question

Some basic math and logic questions.