Pregunta de entrevista de Prolifics

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