Domanda di colloquio di Vendavo

Given a thread problem asked to solve it, Binary tree depth