Reversing and integer array without Temp variable