I got this quiestion and I can't figure out how to do it,

> 
> Write a recursive function that gets 2 positive numbers and return the difference between these number digit
> 
> 
> 

for example n1=24646468 and n2=248 it returns 5

```
        public static int diff(int n1, int n2){
        int sum1=0;
        int sum2=0;
        if(n1==0 && n2==0){
            return sum1-sum2;
        }
        if(n1>n2){
            if(n2==0){
                sum1++;
                return diff(n1/10, n2);
            }
            sum2++;
            return diff(n1,n2/10);
        }
        if(n1<n2){
            if(n1==0){
                sum2++;
                return diff(n1, n2/10);
            }
            sum1++;
            return diff(n1/10,n2);
        }
        return 0;
    }

```

it returns 0

if anyone knows whats wrong with my code thank you for your help :)