Domanda di colloquio di Prolifics

write a code for sorting an array? explain with a example