Maximum Element After Decreasing and Rearranging