Given a Boolean matrix mat[M][N] of size M X N, modify it such that if a matrix cell mat[i][j] is 1 (or true) then make all the cells of ith row and jth column as 1.
Sample Input:
0 0 0 0
0 0 0 0
0 0 0 0
0 1 0 0
Sample Output:
0 1 0 0
0 1 0 0
0 1 0 0
1 1 1 1