This method takes a string as input and returns the reversed version of that string.
Character Array: An array that stores individual characters of a string.
Indexing: The process of accessing individual elements within an array or collection by their position.
Palindrome: A word, phrase, number, or other sequence of characters that reads the same forward and backward.