Leetcode 1974. Minimum Time to Type Word Using Special Typewriter | Hello Interview