Capgemini Interview Question

Explain generics and give an implementation for them