TestMu AI interview question

Writing the code for bottom view of binary tree?