Amazon Interview Question

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