Domanda di colloquio di Celigo

Trapping rain water (leetcode 42). it is standard problem.