Eaton interview question

Write comple code for single link list