Set Matrix Zeroes

Ideas:
1.Find if the first row and first column has 0.
2.Start from row 1 and column 1 and traverse the matrix. If any element is 0, set the first element in this column and this row to 0 as marks
3.Use the marks to finish the set of zeros.