AC solution word search 172ms