CitiusTech interview question

Basic questions of SDET. Array based program