Practice coding challenges
2 problems
Count connected components of '1' in a grid.
Return true if all courses can be finished.