Added Solution to problem 25

Brute force solution.