Infosys Interview Question

Tree based questions were asked.