[improve the solution][Q18.7]find the longest combined word