Cura Tech interview question

implement a linked list and reverse it