Added solutions to reverse a string