Concept Flow - Bottom View of Binary Tree
Start at root node
Assign horizontal distance = 0
Use queue for level order traversal
For each node dequeued:
Record node at horizontal distance
Enqueue left child with hd-1
Enqueue right child with hd+1
After traversal, extract nodes with max depth per horizontal distance
Print bottom view from min hd to max hd
Traverse the tree level by level, track horizontal distances, update bottom nodes, then print from leftmost to rightmost.
