Tavant interview question

Design pattern, basic c# or Java