Detect overlap of two linked lists with cycles | Airbnb Coding Question