Pergunta de entrevista da empresa Sixt

To solve a graph question based on the question no of islands in leetcode , its slight variation.