For this Question: N people are standing in a queue in which A of them like apple and B of them like oranges. How many people like both apple and oranges. 

<b>Note</b>:- It is guaranteed that each and every person likes at least one of the given two.<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>LikesBoth()</b> that takes integers N, A, and B as arguments.

Constraints:-
1 <= N <= 10000
1 <= A <= N
1 <= B <= NReturn the number of people that like both of the fruit.Sample Input:-
5 3 4

Sample Output:-
2

Sample Input:-
5 5 5

Sample Output:-
5, I have written this Solution Code: static int LikesBoth(int N, int A, int B){
        return (A+B-N);
    }, In this Programming Language: Java, Now tell me if this Code is compilable or not?