Pergunta de entrevista da empresa Walmart

Water trapping problem from leetcode -DSA