Find the element in an array that produces the smallest value when passed through a ranking function.