Maximize Array Value

Company: Oracle_19aug

Difficulty: medium