Schneider Electric interview question

write a program to sort an array