Question d’entretien chez ServiceNow

Given a binary tree, print top view