Schneider Electric Interview Question

write a program to sort an array