Pergunta de entrevista da empresa Symbotic

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