Gameskraft interview question

Number of Islands Standard dijkstra's algorithm