Driver code to test above methods
public static void main ( String [ ] args ) { int arr [ ] = { 2 , 3 , 5 , 1 , 4 , 7 , 6 } ; int N = arr . length ; System . out . println ( minInsertionStepToSortArray ( arr , N ) ) ; } }