Driver Code
static public void Main ( ) { int [ ] arr = { 1 , 3 , 5 , 7 , 6 , 5 , 4 , 1 } ; int [ , ] Q = { { 0 , 3 } , { 3 , 4 } , { 2 , 4 } } ; int N = arr . Length ; int M = Q . GetLength ( 0 ) ; findAPSequence ( arr , N , Q , M ) ; } }