Glovo interview question

Traverse a graph coding challenge and filtering with complexity requirements.