Sponsored
Use these hints if you're stuck. Try solving on your own first.
Try sorting the array.
Store the averages being calculated, and find the distinct ones.
Solve with full IDE support and test cases