Driver Code
public static void main ( String [ ] args ) { int arr [ ] = { 1 , 2 , 3 , 4 , 5 } ; int queries [ ] [ ] = { { 0 , 2 } , { 3 , 3 } , { 4 , 2 } } ; int N = arr . length ; int M = queries . length ; findbitwiseAND ( queries , arr , N , M ) ; } }