http://www.nxcoding.com/archives/min-operations-to-make-all-elements-greater-or-equal-to-k