Add solution for problem 8
Add solution for problem 9