Citi interview question

Algorithms based on arrays . Print pattern