Driver Code
public static void main ( String args [ ] ) { int mat [ ] [ ] = { { 1 , 1 , 1 , 0 , 1 } , { 1 , 0 , 2 , 0 , 1 } , { 0 , 0 , 1 , 0 , 1 } , { 1 , 0 , 1 , 1 , 0 } } ; System . out . println ( minimumSteps ( mat , r , c ) ) ; } }