The stable algorithm has to run in O(n) time and must call the following unstable algorithm at least once.
EDIT: Calling unstablesort() is free (costs 0 operations).
def unstablesort(l):
return selectionsort(shuffled(l)) # shuffled(l) returns list l randomized
This is apparently an easy question but frankly I don't know where to start.