using System.Collections.Generic;
public static bool CheckWordSquare(List<string> words) {
for(int i = 0; i < len; i++)
for(int j = 0; j < words[i].Length; j++)
if (j >= len || words[j].Length <= i || words[j][i] != words[i][j])
public static void Main()
Console.WriteLine("UniLecs");
Console.WriteLine(CheckWordSquare(new List<string>() { "abcd", "bnrt", "crm", "dt" }));
Console.WriteLine(CheckWordSquare(new List<string>() { "ball","area","read","lady" }));