Code for problem "Linked List Cycle".