Function to preprcess input mat [ M ] [ N ] . This function mainly fills aux [ M ] [ N ] such that aux [ i ] [ j ] stores sum of elements from ( 0 , 0 ) to ( i , j )
< ? php function preProcess ( & $ mat , & $ aux ) { $ M = 4 ; $ N = 5 ;