Pergunta de entrevista da empresa Squarepoint Capital

Leetcode Question 47, filling the rain water.