I have been asked at interview (C# 3.0) to provide a logic to remove a list of items from a list.
I responded
int[] items={1,2,3,4};
List<int> newList = new List<int>() { 1, 2, 3, 4, 5, 56, 788, 9 };
newList.RemoveAll((int i) => { return items.Contains(i); });
1) The interviewer replied
…