Art of Problem Solving

2022 SSMO Speed Round Problems/Problem 2