Pregunta de entrevista de Pegasystems

Top view of a binary tree, explain and code