E2E Networks interview question

Trapping Rain water problem dsa