Synoriq interview question

There was a coding question where I was asked to print a pattern.