How to solve this question I am getting tle what should i do to get accepted ans. My code which is getting tle is -> https://ide.codingblocks.com/s/55800
I’ve not solved this so I might be completely wrong…