Applied Materials interview question

2. Write code to check if a linked list is circular.