Tokopedia interview question

String matching and sorting algorithm