2779. Maximum Beauty of an Array After Applying Operation - Explanation

Problem Link