GlobalLogic interview question

Write a command line program that prints out a pattern.