VIT Infotech Interview Question

They ask me to write a program to add node in linked list