Arrange the following in order related to bubble sort for a list of elements:
Initial list: \[4, -9, 12, 30, 2, 6\]
(A) \[4, -9, 12, 30, 2, 6\]
(B) \[-9, 4, 12, 30, 2, 6\]
(C) \[-9, 4, 12, 2, 30, 6\]
(D) \[-9, 4, 12, 2, 6, 30\]
Show Hint
In bubble sort, the largest element is placed at the end of the list after each pass.