Sponsored
Use these hints if you're stuck. Try solving on your own first.
For each element, find all possible integers we can get by applying the operations.
Store the frequencies of all the integers in a hashmap.
Solve with full IDE support and test cases