Domanda di colloquio di HARMAN

I was asked to write a program to generate some patterns