ch01_02 reverse string