Bloomberg interview question

Find all clusters in a binary matrix