Getting wrong answer in CYCLCSUM - FEB Cook-off 2020

Can somebody tell me where I went wrong or maybe provide the testcase where the solution is not working?
Here is the submission link-:
https://www.codechef.com/viewsolution/29893184
Thanks!