Problem

Return copy with arr[0] doubled.

Examples

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