Function to find the minimum number of steps to modify the array such that the product of any two numbers in the array is a perfect square
static int minimum_operation ( int b [ ] , int d , int spf [ ] ) {