Avanze Group Interview Question

Leetcode easy medium problem based on trees