Xperi interview question

Print right view of binary tree