Problem of British Mathematical Olympiad (BMO) Round 2 | UKMT | S3Q17