* Don't give loans to people living in [poor area].
* Avoid people with names that aren't similar to the most common ones in the database (i.e. foreign ones)
* When linking the customer data to their social media and you see the picture is dissimilar to [preferred ethnicity], do not give a loan.
Now without any malice from the developer, the system has become racist: It saw the correlation that in the US blacks and hispanics live in poverty more often that others [1]. It knows that poor people pay back loans less frequently and makes the rational decision to not give a loan to that group. This of course reinforces the problem.
But how are we to solve this? Introduce an additional column "race" to the data and bias the results with it? Would that not be just as racist? How do we give the system an awareness not to discriminate against ethnic groups, if the data contains implicit clues? This comes down to giving such an AI human intuition about such questions.