A O ( 1 ) time function to compute sum of submatrix between ( tli , tlj ) and ( rbi , rbj ) using dp [ ] [ ] which is built by the preprocess function
function sumQuery ( dp , tli , tlj , rbi , rbj ) {