IBM interview question

tree and graph coding questions