Pregunta de entrevista de Squarepoint Capital

Leetcode Question 47, filling the rain water.