Problem

Return a new array with the elements of the length-3 array in reverse order.

Examples

  • reverse3([1, 2, 3]) -> [3, 2, 1]
  • reverse3([9, 0, 4]) -> [4, 0, 9]
Compile and test (Ctrl+Enter)