SUNRISE FUTURES Interview Question

Find if a linked list has a cycle