LIFO and FIFO program for Stack and Queue Algorithm simulation