Binary Tree Node Hackerrank Problem