Added Problem 4
solution problem 4