Build a graph

Problem Name:
Build a graph
Site:HackerEarth
Links:
Tags:
Problem setters: