https://ide.codingblocks.com/s/51816
i m getting TLE in 2 test cases
https://hack.codingblocks.com/contests/c/512/705