DataPassports Interview Question

Reverse a linked list using functional programming