Intuit interview question

sorting of array of string