Driver Code
public static void Main ( String [ ] args ) { int [ ] A = { 1 , 2 , 3 , 5 , 8 } ; int n = A . Length ; int [ , ] q = { { 1 , 0 , 2 } , { 2 , 5 , 0 } , { 1 , 3 , 5 } } ; performQueries ( A , n , q ) ; } }