// Driver Code public static void Main(string[] args) { TwoStacks ts = new TwoStacks(5); ts.push1(5); ts.push2(10); ts.push2(15); ts.push1(11); ts.push2(7); Console.WriteLine("Popped element from" + " stack1 is " + ts.pop1()); ts.push2(40); Console.WriteLine("Popped element from" + " stack2 is " + ts.pop2()); }