Pergunta de entrevista da empresa Boston Consulting Group

first problem : given an integer n, return an array of string asterisks * or space " " to build a square of size n = 3. ex: ["***", "* *", "***"]