IBM interview question

Print a particular pattern.