Medma interview question

program for tree using c.