Added solution for Problem 45