you give table consist n row m column each cell table contain number 0 1 in choose row table cyclically shift value cell leave cell rightto cyclically shift table row cell right mean value cell right neighboring cell value cell cell a cyclical shift row leave perform similarly direction for example cyclically shift row 00110 cell right row 00011 shift row 00110 cell leave row 01100determine minimum number move need table column consist number 1