Binary Tree Node Hackerrank Solution