Intel Corporation Interview Question

reverse the linked list