Ok Marilyn, I see where you are getting at now
The reason I passed the String was so that I could add a "0" or a "00" to the beginning of it to always make it divisible by three. Then I could loop through them three at a time after I make that string into an array of single digit ints.
I think what you and Paul are getting at is to instead of doing any of that above, is convert to a number and then pass the number. Then just do divide by a billion, a million, a thousand to get the three digits to work with.
If that is the case, I will have worked this thing three ways. First I reversed the string and placed it into an array of ints, then I went through the string forward but still placed them into an array of ints, and (hopefully) finally I moved forward without using an array at all. I'm slowly getting it
Bill