Problem

Return int[2] with first elements of a and b.

Examples

  • combineEnds([5, 6], [7, 8]) -> [5, 7]
Compile and test (Ctrl+Enter)