Pergunta de entrevista da empresa Bloomberg

First interview was a medium level question that basically tested a bit of string manipulation, arrays and hashmaps. The question I got in my second interview was a grid problem involving BFS.