Project Euler #107: Minimal network

Problem Name:
Project Euler #107: Minimal network
Site:HackerRank
Links:
Tags:
Problem setters: