I cannot pass the test as I am unable to rate or give like the stock array

Here is link to the test

link to my code