Solve Problem 1 (my_last).