Inficare Interview Question

Tree structure