Fortinet Interview Question

Implement a linked list and reverse it