Eaton interview question

Write code of Linked list