Scilligence interview question

Leetcode 295 I believe it was