Questionpro interview question

Ruby array questions