Frage im Vorstellungsgespräch bei Giza Systems

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