Accenture interview question

write down code on pyramid series