This simple reputation test can help leaders recognize ethical problems before they become public crises, according to Warren Buffett.