ThousandEyes Interview Question

reverse a double linked list