Enzigma interview question

Technical round 1: Basic OOPS, Coding on Array