Brute force solution to problem 5
Solved problem 6
Newline
Brute force solution to Problem 6
Solved problem 8