Leetcode 2000 Reverse Prefix of Word