Question d’entretien chez Aspire Systems

Pattern programming, print the given string in different patterns