Visa Inc. interview question

Leet code problem - Trapping rain water