Created Array Function

Created an array function for finding the smallest number that is still
greater than a given number. Also created a global variable for the
array of given numbers.