I wrote the code but not working.Please correct the code.Here is the link:

Link:https://ide.codingblocks.com/s/283663

Hello @KetanPandey
initialise ur head with NULL