in reply to color a letter in an array

If this is not homework then I don't know what would be. Why do these people think their teacher doesn't read PerlMonks? If I were the teacher then dear Tony would be sure to receive a solution tainted so that I can get to know who he is when he finaly submits the homework. And he would not like the outcome.