Rewrote with arrays

Tried to use arrays inside of arrays to print the appropriate answer.
Couldn’t figure it out.