Quantiphi Interview Question

How to add some value in the linked list?