Driver Code
public static void main ( String [ ] args ) { char A [ ] [ ] = { { '1' , '0' , '0' } , { '0' , '0' , '0' } , { '0' , '0' , '0' } } ; char B [ ] [ ] = { { '0' , '0' , '0' } , { '0' , '0' , '0' } , { '0' , '0' , '0' } } ; int K = 3 ; System . out . println ( minMoves ( A , B , K ) ) ; } }