Meddo Health interview question

Core Java Problems on array