Google interview question

Leetcode mediums, graph, OOP, array