https://hack.codingblocks.com/contests/c/537/215
https://ide.codingblocks.com/s/42776
All my trial inputs are giving correct result. But it is showing “no output” for one testcase.
If I use the built-in sort function then I am passing all the test cases. But I still don’t know what was the problem with my code.