Visa Inc. Interview Question

Leet code problem - Trapping rain water