STMicroelectronics interview question

Can you write me a sort algorithm?