Tom reverse an array

This is my piece of code can anyone help me what i am doing wrong here…!!
Any TA??