Germany Math Olympiad Question