Pregunta de entrevista de Cruise

Find a connected component in a binary image given a starting index.