IBM interview question

Sort a list in python