#1 Brute force solution