Complete arrayHelper challenge
Include test cases