public static void PerformStackSetOperations() { SetOfStacks plates = new SetOfStacks(3); plates.Push(1); plates.Push(2); Console.WriteLine("Stack Count:" + plates.StackCount()); plates.Push(3); Console.WriteLine("Stack Count:" + plates.StackCount()); plates.Push(4); plates.Push(5); plates.Push(6); Console.WriteLine("Stack Count:" + plates.StackCount()); plates.Push(7); Console.WriteLine("Stack Count:" + plates.StackCount()); plates.Push(8); Console.WriteLine("Stack Count:" + plates.StackCount()); Console.WriteLine("Popped element:" + plates.Pop()); Console.WriteLine("Popped element:" + plates.Pop()); Console.WriteLine("Stack Count:" + plates.StackCount()); Console.WriteLine("Popped element:" + plates.Pop()); Console.WriteLine("Stack Count:" + plates.StackCount()); }