Pergunta de entrevista da empresa Amazon

What is the maximum possible num in an array manipulated such that