Bloomberg Interview Question

How to output last five nodes in order from a singly linked list whose length is unkown