Problem

Return arr[1] (length >= 2).

Examples

  • secondElement([10, 20, 30]) -> 20
Compile and test (Ctrl+Enter)