QLU interview question

Find the second last index of a sorted array without using built in functions.