Wrote the spec and implementation for reverse and addArray