you give table consist n row m columnsnumber row form permutation integer 1 mYou allow pick element row swap row also allow pick column swap thus allow perform 0 n1 action total Operations perform orderyou check possible obtain identity permutation 12 m row in word check perform operation follow give rule row sort increase order