Maximum Beauty of an Array After Applying Operation

Maximum Beauty of an Array After Applying Operation - Coding Problem | K5kC