Topic: Array Problem / Level: intermediate

Problem: Given an array, find the minimum number of elements to remove so that the remaining elements form an arithmetic progression.

Run the code to see the output here...