Given an array of numbers and a number (n), return the index of the last element greater than n.
// input: const a = [4, 75, 8, 130, 44], n = 45 // output: 3
/* output */