The basic data structure which is known as stack is used to store elements in a linear fashion. The order or method by which operations are carried out in a stack is known as LIFO (last in, first out). This implies that the final element added to the...