Block Interview Question

BFS on input strings