✅✨Check this out!!!✨Easiest solution possible! Beginner friendly!✨✅
UPVOTE IF YOU LIKE IT :)\n\n# Code\n\nclass Solution:\n    def timeRequiredToBuy(self, tickets: List[int], k: int) -> int:\n        c=0\n        i=0\n        wh
# UPVOTE IF YOU LIKE IT :)\n\n# Code\n```\nclass Solution:\n    def timeRequiredToBuy(self, tickets: List[int], k: int) -> int:\n        c=0\n        i=0\n        while(i<len(tickets)):\n            if tickets[k]==0:\n                return c\n            if tickets[i]!=0:\n                tickets[i]-=1\n                c=c+1\n            i+=1\n            if i==len(tickets):\n                i=0\n        return c\n```
['Python3']