How is this Array Problem?

How can we solve this using Array?

you can see this: