Capgemini Engineering Interview Question

Find the depth of a tree