Solution for Problem #41 (Brute-force)
Solution for Problem #41