Last Occurrence in subroblem

What does this mean?

if (i == -1){
if (a[0] == key){
return 0;
}
else {
return -1;
}
}

Leave it, I have understood.

ok cool , closing the thread