Revature Interview Question

Write the code for max number in an array without using inbuilt function