Minimize nodes

Problem Name:
Minimize nodes
Site:HackerEarth
Links:
Tags:
Problem setters: