Add a solution of Chapter 1.7 to reverse a string