Accenture interview question

Code to Add Element in Linked List (Java)