Minimizing graphs weights

Problem Name:
Minimizing graphs weights
Site:HackerEarth
Links:
Tags:
Problem setters: