Implementaion of BinaryTree PreOrder Traversal. Time Complexity: O(n)