Pregunta de entrevista de Grab

linked list codility question given a string return in reverse order