Reverse

Implements a function to reverse a string.