Reverse an array in constant space completed.
Modified card directive index to experiment.