Wipro interview question

Reverse a List Detect a loop in a list