Question d’entretien chez Verisk

Trapping rainwater problem. Longest substring without duplicates.