Stack and Queue (5.1.6, 5.1.7, 5.1.8)

Stack stores elements in LIFO (Last in First Out) method. 


Queue stores elements in FIFO (First in, First out) method.