MathWorks Interview Question

Leetcode medium strings. Leetcode hard undirected graph