Maximum weighted edges

Problem Name:
Maximum weighted edges
Site:HackerEarth
Links:
Tags:
Problem setters: