Correct Option: C
take example of string "madam" for odd palindrome.
str points to beginning of the string 'm'
str1 points to end of string 'm'
1st iteration, it is equal.
2nd iteration - 'a'
3rd iteration - 'd'
4th iteration - 'a'
5th iteration - 'm'
similarly consider even palidrome string:- "noon"
str points to beginning of the string 'n'
str1 points to end of string 'n'
It works for both even and odd palindromes