Capgemini Engineering interview question

WAP to add a node to a linked list