Google interview question

walls and gates leetcode question