Problem

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

Examples

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