problem 9 solution has been added
solutions for problem number 9