WellDev Interview Question

Implement a method to reverse a linked list