Deutsche Bank interview question

Sort the array of strings