Array challenge

in question 2 same problem arises as previous one pls resolve my doubt and tell me the site or link where i can send my code.

Pls send your code by saving on cb.lk/ide so that I could check the error.

thanks for resolving my doubt …