For this Question: Mahesh has won some money K from a lottery, he wants to distribute the money among his three sisters. His sisters already have some money with them. Let's say they have x, y, z amount of money. Now mahesh wants to distribute his money such that all the sisters have the same amount of total money left with them. Your task is to check if it is possible to distribute the money as Mahesh wants.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function <b>distributingMoney()</b> that takes the integers x, y, z, and K as parameters.

<b>Constraints:-</b>
0 <= x, y, z, K <= 10^7Return 1 if possible else return 0.Sample Input:-
1 2 3 3

Sample Output:-
1

Explanation:-
initial :- 1 2 3
Final :- 3 3 3

Sample Input:-
1 2 3 4

Sample Output:-
0, I have written this Solution Code: public static int distributingMoney(long x, long y, long z, long K){
    long sum=0;
    sum+=x+y+z+K;
    if(sum%3!=0){return 0;}
    sum=sum/3;
    if(x>sum || y>sum || z>sum){return 0;}
    return 1;
}

, In this Programming Language: Java, Now tell me if this Code is compilable or not?