45. Replace Max with 0

Medium

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

Implement solve(...)