Question 1  of   20

What is the output of the following code snippet? var list = new LinkedList<int>(); for (int i = 1; i <= 3; i++) { list.AddFirst(i); } foreach (var item in list) { Console.Write($"{item} "); }

A. 3 3 3
B. 1 2 3
C. 1 1 1
D. 3 2 1