https://leetcode-cn.com/contest/biweekly-contest-59/problems/minimum-time-to-type-word-using-special-typewriter/