Assignment 0: String Sorting Solution