Breadth First Search Algorithm Leetcode Sql Solutions