add solution to ninth problem
add solution to problem 10