Synoriq interview question

Write a code to Make a square pattern