How to reverse the string?
Description:
Reversing a string is the process of rearranging the characters in a string so that they appear in the opposite order. For example, if the original string is "Hello", the reversed string would be "olleH". This operation is commonly used in programming for tasks such as checking for palindromes, manipulating text, or preparing data for display.