Sparkrock Interview Question

basic math and logic questions.