add cc150 chapter 1 question 2: c-style reverse a string