Pergunta de entrevista da empresa Amazon

find max in an array. UNEXPECTED. not difficult