Driver Code
public static void Main ( string [ ] args ) { Stack input = new Stack ( ) ; input . Push ( 10 ) ; input . Push ( 3 ) ; input . Push ( 2 ) ; input . Push ( 6 ) ; input . Push ( 12 ) ; int k = 4 ; sortStack ( input , k ) ; } }