First Repeated Character Leetcode