Infosys Interview Question

DSA Question about linked list, Trees