Ola interview question

Trapping rain water leet code problem