Check the equality of the first and last characters and recurse (but be careful to return the correct value for both odd- and even-length strings).