Traverse each query
for ( var i = 0 ; i < q ; i ++ ) { var l = String . fromCharCode ( queries [ i ] [ 0 ] ) . charCodeAt ( 0 ) ; var r = String . fromCharCode ( queries [ i ] [ 1 ] ) . charCodeAt ( 0 ) ; var c = queries [ i ] [ 2 ] . charCodeAt ( 0 ) - ' ' . charCodeAt ( 0 ) ;