improve solution for trapping rain water
update solution