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:
Update map with node data at HD
Enqueue right child with HD+1
After traversal, extract map values sorted by HD
Print bottom view nodes from left to right
Traverse the tree level by level, track horizontal distances, update bottom nodes at each horizontal distance, then print them sorted.
