Leetcode Breadth First Search Algorithm Javascript Playground