Two Sigma interview question

identify friend circles from matrix