Domanda di colloquio di Microsoft

Num of Islands Leetcode variation, Object oriented programming question