Pergunta de entrevista da empresa 100ms

DSA round was trapping rainwater problem + two relatively simple problems involving binary search,