Roblox interview question

2D array islands leetcode question