Deloitte Interview Question

Write a program to print Square pattern