1846. Maximum Element After Decreasing and Rearranging

🧩 Problem: