Added Solution To Problem 2.