Pregunta de entrevista de Amazon

Leetcode 130 Surrounded regions graph problem