submitting solution for challenge #5: pad an array