Add Solution To Problem 6