Question d’entretien chez Millennium

Pretty basic leetcode question, variation of trapping rain water