**Problem Statement:**
Given `n` non-negative integers representing an elevation map where the width of each bar is `1`, compute how much water it can trap after raining.
**Hint / Expected Approach:**
Two-pointer or prefix max arrays
**Edge Cases to Consider:**
- (1) All same height (no water)
- (2) Monotonically increasing/decreasing
- (3) Single or two bars