My array reversal implementation.