String sort approach is not clear to me I posted a question 2 days ago

please give me some hint that i can go with it.