Dell Technologies Interview Question

Leetcode flood fill and counting consicutive ones