How to avoid buying a car that’s been in a flood

How to avoid buying a car that’s been in a flood