Bentley Systems interview question

Graph and Tree Related questions