Problem 3

resolving