water container O(n2)