TASK 4 passed the test readWriteArray.pal