Google interview question

Around leetcode medium level, just use deep first search