Question d’entretien chez Visma

Q: Programming related. How would you solve this problem (array sorting)