Driver Code
public static void Main ( String [ ] args ) { Stack < int > N1 = new Stack < int > ( ) ; N1 . Push ( 5 ) ; N1 . Push ( 8 ) ; N1 . Push ( 7 ) ; N1 . Push ( 4 ) ; Stack < int > N2 = new Stack < int > ( ) ; N2 . Push ( 2 ) ; N2 . Push ( 1 ) ; N2 . Push ( 3 ) ; Stack < int > res = PushStack ( N1 , N2 ) ; display ( res ) ; } }