Array reverse and array

This is my code can anyone tell me what i am doing wrong here