give an example of a list with three elements which demonstrates that selection sort is unstable and explain.
a) [3, 2, 1] - In this list, the first element is swapped with the third element, making it unstable.
b) [1, 2, 3] - This list remains stable as the elements retain their original order.
c) [2, 1, 3] - The original order of the elements is changed, indicating instability.
d) [1, 3, 2] - This list shows instability as the order of the elements changes after sorting.