Implement BFS in Java with following algorithm - Stack Overflow

Implement BFS in Java with following algorithm - Stack Overflow