Cognizant Interview Question

Stack operation using linked list