Array Function: next highest value. passing an incorrect value. code not correct