Pregunta de entrevista de STMicroelectronics

Can you write me a sort algorithm?