Push contents of both stacks in result
Stack < int > res = new Stack < int > ( ) ; while ( s1 . Count != 0 ) { res . Push ( s1 . Peek ( ) ) ; s1 . Pop ( ) ; } while ( s2 . Count != 0 ) { res . Push ( s2 . Peek ( ) ) ; s2 . Pop ( ) ; }