public static void driver()
        {
            SingleArrThreeStks3_1 stack = new SingleArrThreeStks3_1();

            stack.push(1, 0);
            stack.push(2, 0);
            stack.push(3, 1);
            stack.push(4, 1);
            stack.push(5, 2);
            stack.push(6, 2);
            stack.push(7, 1);
            stack.push(8, 0);
            stack.push(9, 2);

            int ndx = 0;
            while (!stack.IsEmpty())
            {
                Console.WriteLine("Pop from Stack[{2}] = {0}\t Peek from {2} = {1}", stack.pop(ndx%3), stack.peek(ndx%3), ndx%3);
                ndx++;
            }
        }
        public static void driver()
        {
            SingleArrThreeStks3_1 stack = new SingleArrThreeStks3_1();

            stack.push(1, 0);
            stack.push(2, 0);
            stack.push(3, 1);
            stack.push(4, 1);
            stack.push(5, 2);
            stack.push(6, 2);
            stack.push(7, 1);
            stack.push(8, 0);
            stack.push(9, 2);

            int ndx = 0;

            while (!stack.IsEmpty())
            {
                Console.WriteLine("Pop from Stack[{2}] = {0}\t Peek from {2} = {1}", stack.pop(ndx % 3), stack.peek(ndx % 3), ndx % 3);
                ndx++;
            }
        }