a program which return kth element from the tail of the linked list