Prateek loves candy ultimate


in this code,the answer is not coming for input number greater than 4…
if i am iving inputs 3 and 1 in for 2 testcases…it is working fine but fot 2 testcases situation and inputs 5 and 1…it is not working