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