AT&T interview question

Provide some design pattern example and implementation in Java or C++