class Solution(object):
    def buildArray(self, nums):
        """
        :type nums: List[int]
        :rtype: List[int]
        """
        ans = [0]*len(nums)
        print(ans)
        for i in range(len(nums)):
            ans[i] = nums[nums[i]]
        return ans
