Count connected components in a binary grid | Crowdstrike Interview Question