Return the position of the LAST time the target appears, or -1 when it is absent. Counting starts at 0.
int lastIndexOf(int[] values, int target)
Examples
There are also 3 hidden tests you can't see. Solve the problem, not the examples.