Find bounding boxes of connected houses | Rippling Interview Question