Bureau Veritas interview question

write program on sorting data structures in best possible way