Pergunta de entrevista da empresa Tata Consultancy Services

How to find maximum number in an array?