Answer to array exercises