Added code to check if every internal node has only one child using preorder traversal of bst.