https://medium.com/leetsolve/c-solution-to-coding-challenge-462-minimum-moves-to-equal-array-elements-ii-b70bdabdfab0