public static void main(String args[]){
        int inOrder[] = {4,8,10,12,14,20,22};
        int levelOrder[] = {20,8,22,4,12,10,14};
        ConstructTreeFromLevelOrderInOrder ctf = new ConstructTreeFromLevelOrderInOrder();
        Node root = ctf.constructTree(inOrder, levelOrder);
        LevelOrderTraversal lot = new LevelOrderTraversal();
        TreeTraversals tt = new TreeTraversals();
        tt.inOrder(root);
        lot.levelOrder(root);
    }
http://www.geeksforgeeks.org/construct-tree-inorder-level-order-traversals/
Test cases
same length of inorder and level order array
all elements should be same in them
what to do if repetition happens. This logic only works for non repeated values
if inorder and levelorder were represented by string how would you handle multi digits
e.g 1234 we don't know if it is 12 34 or 1 2 3 4 or what. Maybe use brackets
(12)(3)(4) to differentiate between them.
src/com/interview/tree/ConstructTreeFromLevelOrderInOrder.java