Sponsored
Use these hints if you're stuck. Try solving on your own first.
Consider that any valid arithmetic progression will be in sorted order.
Sort the array, then check if the differences of all consecutive elements are equal.
Solve with full IDE support and test cases