adding correct answer to string reversal