Write a program to check if a string is a palindrome using pointers.
HardProblem Statement
Write a program to check if a string is a palindrome using pointers.
Sample Input
str = 'madam'
Sample Output
madam is a palindrome
Limits
Time: 2s · Memory: 256 MB