Pergunta de entrevista da empresa Avanze Group

Leetcode easy medium problem based on trees