Can we use brute-force to solve the problem?

Cited by 18