Citi Interview Question

Algorithms based on arrays . Print pattern