Giza Systems interview question

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