Last testcase giving TLE . please help I have been trying to find the error for a long time now.↵
↵
![ Link to my solution](https://ideone.com/pfhKAV)↵
↵
![Problem Link](https://cses.fi/problemset/task/1750/)
↵
![ Link to my solution](https://ideone.com/pfhKAV)↵
↵
![Problem Link](https://cses.fi/problemset/task/1750/)