Giza Systems Interview Question

Question related to programming and problem solving. Some basic math question.