The original article is available:
_Indirect Reciprocity and the Evolution of Prejudicial Groups_ , Roger M. Whitaker, Gualtiero B. Colombo & David G. Rand, Scientific Reports Volume 8, Article number: 13247 (2018)
The article is **not** about robots (i.e. machines that can carry out actions) and doesn't even mention robots. It mentions sexism and racial extremism only once - in the first paragraph of the introduction (where it also manages to tie in support for Brexit).
The article is about evolutionary game theory, and shows that certain versions of "in-group favoritism" can be evolved in computer models that have been designed to show that precisely that.