Array algo pull request

Nice job, very clean answer.