Problem

Return last index of target or -1.

Examples

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