KPMG Interview Question

write a code to print the diamond pattern