Accenture Interview Question

Write a code for best sorting. assume u are wring code for library managenent