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