http://www.nxcoding.com/archives/leetcode-daily-2712-minimum-cost-to-make-characters-equal