ABC interview question

bottom view of binary tree