Question d’entretien chez Grab

linked list codility question given a string return in reverse order