Given the root of a binary tree, visit and collect its node values using a preorder traversal strategy (visiting the current node first, then recursively traversing the left subtree, and finally traversing the right subtree).
Visualizer will appear here