結果 : make all array elements equal with minimum cost leetcode