Capgemini interview question

WAP to find max no. from an array.