Pergunta de entrevista da empresa Aspire Systems

Pattern programming, print the given string in different patterns