JPMorganChase interview question

What's the difference between LIFO and FIFO