Qualcomm Interview Question

write binary tree programm