Valeo interview question

write a code makes sorting