I DON'T KNOW where my code is going wrong QN - Code : (PALSUM)

https://www.codechef.com/viewsolution/54227957