question 21: Brute Force solution
question 21: Brute Force solution