A stack is a linear data structure only access the data from one side, which operation is also known as first in last out (FILO).