Pergunta de entrevista da empresa Savant Degrees

Algorithm based question is, find the depth of tree