Prateek loves candy

My 4 test cases are correct except one which is giving timelimit error. I can’t figure out what to do to prevent the error

ide -->https://ide.codingblocks.com/s/169075

You are sharing wrong code …you have shared me the code of linked list…but u have asked for prateek loves candy …pls specify the correct ques and send the correct code…

ide -->https://ide.codingblocks.com/s/169090