Synopsys interview question

Diagonal traversal of a binary tree