Samsung Electronics interview question

Sort an array of string