Visa Inc. interview question

code to implement sorting of a list of strings