Palindrome String
Input: S = "abba"Output: 1Explanation: S is a palindrome
int isPalindrome(string S)
{
string st = S;
char temp;
int i=0, j= st.length()-1;
while(j>i)
{
if(S[i] != S[j])
{
return 0;
}
i++;
j--;
}
return 1;
}
Depressed Dragonfly