Problem

Return copy without last element (non-empty).

Examples

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