Eurofins Interview Question

Write an extension method in c#