Aspire Systems interview question

Pattern programming, print the given string in different patterns