Implement a Stack using a Linked List

Write a program to implement a stack using an Linked List with the following operations:

  • Push an element
  • Pop an element
  • Peek (get the top element)
  • Check if the stack is empty or full
Input