Daffodil Software interview question

Questions are based on Array, strings ,pattern printing