[P3]Loop through array to detect mistakes.