Towards the Effect of Examples on In-Context Learning: A Theoretical Case Study