@@ -0,0 +1,583 @@
+import java.io.*;%0Aimport java.util.*;%0Aimport java.text.*;%0Aimport java.math.*;%0Aimport java.util.regex.*;%0A%0Apublic class BitwiseAnd %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner in = new Scanner(System.in);%0A      %09%09int t = in.nextInt();%0A%09%09for (int a0 = 0; a0 %3C t; a0++) %7B%0A%09%09%09int n = in.nextInt();%0A%09%09%09int k = in.nextInt();%0A%09%09%09int finalNum = 0;%0A%09%09%09for (int i = 1; i %3C n; i++) %7B%0A%09%09%09%09for (int j = i + 1; j %3C= n; j++) %7B%0A%09%09%09%09%09int andOp = i & j;%0A%09%09%09%09%09if (andOp %3C k && andOp %3E finalNum) %7B%0A%09%09%09%09%09%09finalNum = andOp;%0A%09%09%09%09%09%7D%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%09System.out.println(finalNum);%0A%09%09%7D%0A    %7D%0A%7D%0A

Create BitwiseAnd.java