Google interview question

Leetcode-hard questions on graph traversals and further optimisation