Accenture interview question

Coding questions involving linked list