Bureau Veritas Interview Question

write program on sorting data structures in best possible way