How to find if linked list is circular or not?