Maximum water storage problem