Harvard MIT Math Tournament 2022 | HMMT | Problem 4 | Olympiad math questions | Solutions