524. Longest Word in Dictionary through Deleting (Medium)