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's value at its horizontal distance
Enqueue left child with hd-1
Enqueue right child with hd+1
After traversal, extract values sorted by horizontal distance
Print bottom view nodes left to right
Traverse the tree level by level, track horizontal distances, update bottom view map with latest node at each distance, then print sorted bottom view.
