Need a little help

any bar can store water upto minimum of its adjacent bar heights.is it correct?

@Shadow_Flash bars will store minimum of leftmost highest bar and rightmost highest bars for each bar.