Domanda di colloquio di Giza Systems

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