Part of 2017 Singapore Senior Math Olympiad
Source: Singapore Senior Math Olympiad 2017 2nd Round p4 SMO