For this Question: You are given the following pseudocode:

code : 
res = a
for i = 1 to k
 if i is odd
     res = res & b 
 else 
     res = res | b

You are also given the values of a, b and k. Find the value of res.First line contains of single integer t denoting number of test cases.
Each test cases consists of 3 lines where each line consists of a single integer denoting the values of a, b and k respectively.

<b>Constraints</b>
1<= T <= 1e5
1<= a, b, k <= 1e18Print the final value of res for each test case in a new lineSample Input :
1
4 5 1

Sample Output : 
4, I have written this Solution Code: import java.io.*;
import java.util.*;



class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int t = Integer.parseInt(br.readLine());
		for(int j=0;j<t;j++){
			String[] arr = br.readLine().split(" ");
			long a = Long.parseLong(arr[0]);
			long b = Long.parseLong(arr[1]);
			long k = Long.parseLong(arr[2]);

			System.out.println((k==1)?a&b:b);

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