Infosys interview question

1. print pyramid pattern (coding qs)