Pergunta de entrevista da empresa Prateek Group

DSA array easy question about finding max element?