結果 : minimum array cost hackerrank solution