Valeo Interview Question

write a code makes sorting