Wipro Interview Question

Reverse a List Detect a loop in a list