Domanda di colloquio di Happay

Dsa question based on graph and trees