Driver Code
public static void Main ( ) { int [ ] arr = { 3 , 1 , 23 , 45 , 100 } ; int N = arr . Length ; int [ , ] Q = { { 1 , 2 } , { 0 , 10 } , { 2 , 3 } , { 1 , 5 } , { 2 , 4 } } ; Query ( arr , N , Q ) ; } }