Hi, Tom!
I am no native speaker but the second sentence sounds much more natural to me, because “given” is used to define “example” and should obey the word order for adjectives. When I hear “…for the example given” it sounds incomplete - as if the speaker wanted to say something like “…for the example given at the top of the page” to further clarify which example exactly from a set of given examples.
Maybe a teacher will be able to determine if I’m right
Stanislav
PS I’ve just noticed why you’re asking this question. I wonder what Alan’s intention was when he coloured “example given” red?