Pergunta de entrevista da empresa Getty Images

write the code for "Trapping Water" from LeetCode