T-Systems interview question

write a LINQ extension method