LeetCode 2000. Reverse Prefix of Word 解題紀錄
將從 0 到指定位置的文字片段翻轉。Reverse the segment of
word that starts at index 0 and ends at the index of the ch.word that starts at index 0 and ends at the index of the ch.answer (1-indexed).