Microsoft Interview Question

BFS based leetcode medium level problem