Domanda di colloquio di Goldman Sachs

Answer the classic trapping rainwater leetcode question