Homework2

this is a comment
I think you want that to be a logical vector.  Otherwise it just returns "A".  integer vector indices don't recycle the way logical vector indices do.