An array `heights` gives the height of vertical walls at each position. Picking two walls i and j forms a tank that holds min(heights[i], heights[j]) * (j - i) units of water. Return the maximum water any pair of walls can hold.