Domanda di colloquio di SentinelOne

Standard Coding Question based on Graphs, Trees and their optimizaitons