you give integer row cols rCenter cCenter there row x cols matrix cell coordinate rCenter ccenterreturn coordinate cell matrix sort distance rCenter cCenter small distance large distance you return answer order satisfie conditionthe distance cell r1 c1 r2 c2 r1 r2 c1 c2 Example 1input row 1 col 2 rcenter 0 ccenter 0output 0001explanation the distance 0 0 cell 01Example 2input row 2 col 2 rcenter 0 cCenter 1output 01001110explanation the distance 0 1 cell 0112the answer 01110010 accept correctExample 3input row 2 col 3 rcenter 1 ccenter 2output 120211011000explanation the distance 1 2 cell 011223there answer accept correct 121102100100 Constraints1 row col 1000 rCenter rows0 ccenter col