SET-MATRIX-ZEROES

solved with constant extra space, by ultilizing first row and first col
in matrix