Oracle interview question

Leetcode mediums, graph + trees