100ms interview question

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