Pergunta de entrevista da empresa Visa Inc.

Rainwater retention problem from leetcode.