Qualtrics interview question

Asked medium let code question. trapping water in rain.