ACL Digital interview question

reverse a string , basic linkedlist question