Domanda di colloquio di QLU

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