Amazon Interview Question

How to find the maximum number in array?