Break the node

Problem Name:
Break the node
Site:HackerEarth
Links:
Tags: