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 its 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 leftmost to rightmost horizontal distance
Traverse the tree level by level, track horizontal distances, update bottom nodes, then print from left to right.