Question d’entretien chez Microsoft

Num of Islands Leetcode variation, Object oriented programming question