Pregunta de entrevista de Cargobase

How would you solve the problem in python (live code) in sorting random number.