Wipro interview question

To print a perticular pattern.