For this Question: Harsh is thinking of starting his own business. He has decided to start with the hotel business. He has been given a list that contains the arrival time and the duration of stay of each guest at his hotel. He can give 1 room to only 1 guest. Since he does not want to disappoint his guests he wants to find the minimum number of rooms he needs to build so that he could accommodate all the guests. Help him in finding this answer.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You have to complete the function <b>rooms()</b> that takes an integer n denoting the number of guests and two arrays A and B denoting the arrival time and duration of stay of each guest respectively as parameters.

<b>Constraints:</b>
1 &le; T &le; 5
1 &le; N &le; 10<sup>5</sup>
1 &le; A[i], B[i] &le; 10<sup>9</sup>For each test case, print in a new line the minimum number of rooms he needs to build.Sample Input:-
1
3 
1 2 3 
3 3 3 
Sample Output:-
3

Sample Input:-
1
5 
1 2 3 4 5 
2 3 4 5 6 
Sample Output:-
3, I have written this Solution Code: class Solution {
   
    public void rooms(int n,int []a,int []b) {
             for (int i = 0; i < n ; i++)
                b[i] += a[i];
            Arrays.sort(a);
            Arrays.sort(b);
            int i = 1, j = 0, count = 1;
            int result = 0;
            while (i < n)
            {
                if (a[i] < b[j])
                {
                    count++;
                    i++;
                }
                else if (a[i]  >= b[j])
                {
                    count--;
                    j++;
                }
                result = Math.max(result, count);
            }
            System.out.println(result);
       
   }
}
 , In this Programming Language: Java, Now tell me if this Code is compilable or not?