let consider nn square matrix consist digit zerowell consider matrix good meet follow condition row matrix one group that row matrix look like 000011110000 simply consist zero onesyou give matrix size nn consist zeroes one your task determine good matrix b rearrange column