Question d’entretien chez Google

Subarray contiguous count occurrence and return