Binary Tree Node Hackerrank Problem Solution