Added new solution to problem 1