Driver Code
public static void Main ( String [ ] args ) { head = null ; char [ ] str = " skeegforskeeg " . ToCharArray ( ) ; for ( int i = 0 ; i < str . Length ; i ++ ) { push ( head , str [ i ] ) ; } Console . WriteLine ( maxChar ( head ) ) ; } }