Target interview question

detect loop in linked list