Pratham interview question

There was DSA question based on pattern and arrays