45. Replace Max with 0

Medium

Replace the maximum value of array a with 0 and return the result.

Sign in to write and run your own code.

Implement solve(...)