LeetCode Solution, Easy, 917. Reverse Only Letters