Lexicon Networks interview question

write a code to find max of an array