Binance interview question

Write a sort algorithm, any one is ok