Leetcode 2258. Escape the Spreading Fire | Hello Interview