Driver Code
static public void Main ( ) { int [ ] arr = { 5 , 6 , 8 , 10 , 15 } ; int N = arr . Length ; int [ , ] queries = { { 0 , 1 } , { 0 , 2 } , { 1 , 4 } } ; int Q = queries . GetLength ( 0 ) ; findMaximum ( arr , N , Q , queries ) ; } }