Amazon Interview Question

BFS (Dry Run, Optimal Code, Space & Time Complexity)