added solution to problem 9
added solution to problem 9
final sol to 9