Sponsored
Use these hints if you're stuck. Try solving on your own first.
Operation 1 allows you to freely reorder the string.
Operation 2 allows you to freely reassign the letters' frequencies.
Solve with full IDE support and test cases