Thought Machine interview question

LeetCode-Style Algo Questions – 1 Graph and 1 Array Question