Concept Flow - Delete Node at End
Start at head
Check if list empty?
Yes→Nothing to delete, EXIT
No
Check if only one node?
Yes→Delete head, set head=null
No
Traverse to second last node
Set second last node's next=null
Node at end deleted
EXIT
Start from the head, check if list is empty or has one node, otherwise traverse to second last node and remove the last node by setting next to null.
