Finished problem 6 brute force way. Note: Come back and use sum formulas to solve itin faster runtime