One test case is giving tle

Sir/Ma’am
This is the link to my code https://ide.codingblocks.com/s/286668 , i am not able to pass one test case it is giving TLE .

@sinhadivyam19 this works fine:


your effective time complexity as O(nxnxw), which is now reduced to O(nxw)