Finished solutions for arrays.