Added Solution to Problem 4.