xxxxxxxxxx
class Solution74
{
//Function to find total number of unique paths.
public static int NumberOfPath(int a, int b)
{
//Your code here
if(a==1 && b==1)
return 1;
if(a==0 || b==0)
return 0;
return NumberOfPath(a-1,b)+NumberOfPath(a,b-1);
}
}