different way PYTHON
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution:\n    def timeRequiredToBuy(self, tickets: List[int], k: int) -> int:\n\n        new=[]\n        kk=tickets[k]\n        x=0\n        for i in range(len(tickets)):\n            if tickets[i]<=kk:\n                new.append(tickets[i])\n            if i > k and tickets[i]>=tickets[k]:\n                x+=1\n        more=len(tickets)-len(new)\n        \n        return sum(new)+(more*kk)-x\n        \n```
['Python3']