WA in TEMPLELA

Question Link:
https://www.codechef.com/SDPCB21/problems/TEMPLELA

Please can someone provide a testcase for which my solution is failing?

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