Microsoft Interview Question

How do you find whether a flower in a bit map image is connected?