6.00.2x-CS-Python: DFS brute force algorithm.