Problem 1

solving