STMicroelectronics Interview Question

Can you write me a sort algorithm?