Driver Code
public static void Main ( ) { List < int > arr = new List < int > ( ) { 1 , 2 , 3 , 4 , 5 } ; int [ , ] queries = new int [ 3 , 2 ] { { 0 , 2 } , { 3 , 3 } , { 4 , 2 } } ; int N = arr . Count ; int M = 3 ; findbitwiseAND ( queries , arr , N , M ) ; } }