How To Compute Fifo And Lifo