When query type is 1
if query [ i - 1 ] [ 0 ] == 1 : NEW_LINE INDENT l = query [ i - 1 ] [ 1 ] NEW_LINE r = query [ i - 1 ] [ 2 ] NEW_LINE print ( frequency_zero ( 1 , 0 , n - 1 , l , r ) ) NEW_LINE DEDENT