How to avoid buying a car damaged in Hurricanes Harvey, Irma

We've seen bad flooding in places hit by Hurricanes Irma and Harvey, but in the wake of that, some may look to take advantage of other by salvaging flooded cars and selling them to make a profit.