GlobalLogic Interview Question

Delete last node in a linkedlist.