KPMG interview question

write a code to print the diamond pattern