SAP interview question

Bottom view of the tree and Advanced graph problems