isPalindrome

Write a function that takes a string and returns true if that string is a palindrome.

For an added challenge, phrases with spaces and characters can be palindromes. "Eva, can I see bees in a cave?" would return true.

Hints:

reverseArray()
reverseString()

It may help to first write a function reverseArray that takes an array and returns the array, but reversed. After you accomplish this, write the same function, but pass it a string.

After you write reverseString, the next bit of problem solving is on you. Write isPalendrome and return a boolean answering the question, "is this string a Palendrome?" instead of a string.