Report question

Question: Algorithm to find the total number of connected sets in a matrix