Google Interview Question

Implement max depth of leafnode paths