Problem
Given an array of stringswords, return true if it forms a valid word square.
A sequence of strings forms a valid word square if the k^th row and column read the same string, where 0 <= k < max(numRows, numColumns).
Examples
Constraints
1 <= words.length <= 5001 <= words[i].length <= 500words[i]consists of only lower-case English letters.