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
Repeat until queue empty
Extract bottom view from recorded nodes
Print nodes from min hd to max hd
Traverse the tree level by level, track horizontal distances, update bottom nodes at each distance, then print from leftmost to rightmost.