class Solution:
    def restoreString(self, s: str, indices: List[int]) -> str:
        # result array of chars
        res = [0] * len(s)

        # go through chars, and insert at index i
        for i in range(len(s)):
            res[indices[i]] = s[i]

        # join res to string for result
        return ''.join(res)
7e0d98d76f13c45354b08eeedd053a53f18bd0a9
<mask token>

class Solution:
    <mask token>

class Solution:

    def restoreString(self, s: str, indices: List[int]) ->str:
        res = [0] * len(s)
        for i in range(len(s)):
            res[indices[i]] = s[i]
        return ''.join(res)

class Solution:
    def restoreString(self, s: str, indices: List[int]) -> str:
        # result array of chars
        res = [0] * len(s)

        # go through chars, and insert at index i
        for i in range(len(s)):
            res[indices[i]] = s[i]

        # join res to string for result
        return ''.join(res)