Prudential interview question

Basic java and oop questions and one quick algo questions with array iteration