Gold Coin Blogger

What's wrong with the following array reading function?