Einfochips interview question

Dsa trapping rain water 2