Ormuco Interview Question

tree problem