Array Problems (Part 1)

Solve the problems in the SCRIPT element.