This function receives l and r representing the indices and prints the required output
static void query ( int l , int r ) { if ( ( sum [ r + 1 ] - sum [ l ] ) % 3 == 0 ) { Console . WriteLine ( " Divisible ▁ by ▁ 3" ) ; } else { Console . WriteLine ( " Not ▁ divisible ▁ by ▁ 3" ) ; } }