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: def solve(a,b,k):
	res=a
	for i in range(1,k):
		if(i%2==1):
			res= res & b
		else:
			res= res | b
	return res

t=int(input())
for i in range(t):
	a,b,k=list(map(int, input().split()))
	if k==1:
		print(a&b)
	else:
		print(b), In this Programming Language: Python, Now tell me if this Code is compilable or not?