BNSF Railway Interview Question

maximum rain water trapped (leetcode hard)