Answer:
Following are the code which is mention below.
bool equals (int x, int y) Â // method equals
{
if( (x<0) || (y<0) ) Â // check number if it is less then 0
return false; Â // return false
if( (x==0) && (y==0) ) Â // check condition if number is equal to 0
return true; Â // return true
return equals(x-1, y-1); Â
}
Explanation:
          1.  if x and y both are less then  0 then it returns "false".
          2.  if x and y both are equal to 0 then it returns "true"
          3.  Otherwise it return x-1 and y-1.