Solving "Utopian Tree" from Hacker Rank ( Easy ) - Problem solving in JS

Published --