Rakuten Interview Question

Array reversal in optimized way?