Pegasystems interview question

Top view of a binary tree, explain and code