Bloomberg interview question

Write a function to find out whether a linked list is cyclic