https://hack.codingblocks.com/contests/c/511/871
basically to solve this problem i am doing the reverse of kruskal algorithm that is just sort the elements in decreasing order.
but there is some problem with my sort function pls debug it.
https://ide.codingblocks.com/s/48860