Wow, that is hard to follow code for a newbie to write.
I take it you are not allowed to use a for loop.
I am surprised the answer is so close to being correct.

Tim S.