Fortinet interview question

Implement a linked list and reverse it