ION Group interview question

Depth First Search Islands Problem