Adobe Interview Question

A modified bfs problem Theoretical concepts about ml but also about programming.