Lam Research interview question

C program patterns lik " Diamond "