finished problem 24 -- brute (~1 min)