ex 1.2.7 -- recursive string reversal