Leetcode Breadth First Search Algorithm Python Example Classical Conditioning