Question 4 Brute force