Problem

Return length-2 copy of first two elements.

Examples

  • copyTwo([9, 8, 7]) -> [9, 8]
Compile and test (Ctrl+Enter)