public static void main(String args[]) {
         BinaryTreeFromParentRepresentation btpp = new BinaryTreeFromParentRepresentation();
         int input[] =  {1, 5, 5, 2, 2, -1, 3};
         Node root = btpp.create(input);
         TreeTraversals tt = new TreeTraversals();
         tt.inOrder(root);
         System.out.println();
         tt.preOrder(root);
     }
Date 11/01/2015
@author Tushar Roy

Given an array reprsentation of binary tree where index is data while value at index is
parent create the binary tree. Value of -1 indicates root node.

References:
http://www.geeksforgeeks.org/construct-a-binary-tree-from-parent-array-representation/
src/com/interview/tree/BinaryTreeFromParentRepresentation.java