International Maths Olympiad Problem | Algebra