Wipro interview question

getting different patterns as output using any language