Solution for Words from 2D array