Not getting submitted ... why? WHAT IS WRONG IN THIS

long numberOfPaths(int m, int n)
{
// code here
return NumberOfPaths(0,0, m-1, n-1, new long[m][n]);
}
private long NumberOfPaths(int cx,int xy,int tx, int ty, long[][] arr){
if(cx == tx && xy == ty){
return 1;
}

    if(cx > tx || xy > ty){
        return 0;
    
        
    }
    
    if(arr[cx][xy] != 0){
        return arr[cx][xy];
    }
    
    long count = 0;
    count += NumberOfPaths(cx+1,xy,tx,ty, arr);
    count += NumberOfPaths(cx,xy+1,tx,ty, arr);
    
    arr[cx][xy] = count;
    return count;
}

}

SAME TYPE OF QUESTION, QUESTION LINK: https://practice.geeksforgeeks.org/problems/count-all-possible-paths-from-top-left-to-bottom-right3011/1#

Hey @ayush_r18,
I can’t find this problem in the course content. Please ask doubts related to the problems discussed in the course content or concept.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.