Need Help Arduino Array

i read that post b4 but i seriously didn't understand what it means but when you (guix) give your example ok now i see how it works.
i took a couple of minutes to understand your code but when i do it hit me, just think how much time i have wasted doing such long program just to achieve the same outcome