Function to find the minimum number of increment and decrement of pairs required to make all array elements equal
#include <bits/stdc++.h> NEW_LINE using namespace std ; int find ( vector < int > arr , int N ) {