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 ; Console . Write ( minInsertionStepToSortArray ( arr , N ) ) ; } }