Morgan Stanley interview question

implement a linked list reverse a string