Help me in solving LJAJAG36 problem

My issue

can’t solve it for numeric values

My code

#include <stdio.h>

#include<string.h>


// your code goes here
void isPalindrome(char str[])
{
    char rev[10];
    int len = strlen(str);
    for (int i = 0,  j = len - 1; i < len, j >= 0; i++, j--)
    {
        rev[i] = str[j];
    }
    rev[len] = '\0';

    if (strcmp(str, rev) == 0)
        printf("Palindrome");
    else
        printf("Not palindrome");
}


int main()
{
    char str[]="madam";
  
    isPalindrome(str);
}

Learning course: Learn C Programming
Problem Link: https://www.codechef.com/learn/course/rcpit-programming-c/RCPITLPC37/problems/LJAJAG36