LeadSquared Interview Question

Reverse linked list in chunks