ServiceNow interview question

Given a binary tree, print top view