Fortinet interview question

Delete a node in a linked list, reverse a string