NiCE interview question

Function to print a binary tree