array max value: for , reduce, recursive