Given a NxN matrix, with 0s and 1s, set every row that contains a 0 to all 0s and every column that contains a 0 to all 0s.
For example:
Input for N==5
1 0 1 1 0
0 1 1 1 0
1 1 1 1 1
1 0 1 1 1
1 1 1 1 1
results in
0 0 0 0 0
0 0 0 0 0
0 0 1 1 0
0 0 0 0 0
0 0 1 1 0