EY interview question

oops, c#, design patterns