Pinterest Interview Question

2 coding questions with some ML basics. 1 is BFS and another 1 is Multi-dimensional BFS. ML basic questions are very simple.