Problem

Rotate arr right one position.

Examples

  • rotateRight([1, 2, 3]) -> [3, 1, 2]
Compile and test (Ctrl+Enter)