"An" is used before words that start with a vowel sound, even if the word itself begins with a consonant. In this case, "example" starts with a vowel sound (the "e" sound), so we use "an".
"An" is used before words that start with a vowel sound, even if the word itself begins with a consonant. In this case, "example" starts with a vowel sound (the "e" sound), so we use "an".