Find the tail of the given linked list
Given a linked list, you are asked to find the tail and print its value.
The input is read automatically. You don’t need to do anything.
The program should print the value of the tail of the given linked list.
5 4 2 9 8 -4
Time limit: 1 seconds
Memory limit: 512 MB
Output limit: 1 MB