please check why it isnt working
hello @anindya-gupta initialise ur head pointer with NULL and then try
also use && here