Wipro Interview Question

To print a perticular pattern.