SUNRISE FUTURES interview question

Find if a linked list has a cycle