Water is a valuable natural resource, but it can also cause extensive damage when it invades the wrong place at…