Symbotic Interview Question

write a function to reverse a string is it possible to reverse a singly linked list in linear time