Goldman Sachs interview question

1. Snowcap/ rain Trapping problem