added solution to problem 1
added solution to problem 2