Meta interview question

Sliding Window, Graph (Depth first search)