HCLTech interview question

Implement inserting into single linked list