Argusoft interview question

Basic problem solving questions (maths).