I am writing a program to check if the given string is a palindrome or not. I wrote a function to reverse the string but unable to store the reversed string in a different v