Added a brute force approach to problem 30