Myntra interview question

Store rain water dp problem