ERPLY interview question

quick sort algorithm , and wana see if this really count word