Sparkrock interview question

basic math and logic questions.