Baxter interview question

Print triangle pattern using tree.