[Python] Simple, readable, easy to understand solution (beats 69%)
The approach is as follows:\n1. Keep track of the number of seconds (this is what will be returned)\n2. As long as the person at k index still has tickets to bu
The approach is as follows:\n1. Keep track of the number of seconds (this is what will be returned)\n2. As long as the person at k index still has tickets to buy:\n\t* Sell tickets to everyone in the line who still has tickets to buy\n\t* Add a second for each ticket sold\n3. Return how many seconds were needed to sell the person at k index all of their tickets\n```\nclass Solution:\n    def timeRequiredToBuy(self, tickets: List[int], k: int) -> int:\n        num_seconds = 0\n        \n        while tickets[k] > 0:\n            for i in range(len(tickets)):\n                if tickets[i] > 0 and tickets[k] > 0:\n                    tickets[i] -= 1\n                    num_seconds += 1\n\n        return num_seconds\n```\n![image](https://assets.leetcode.com/users/images/6c478172-bc00-416c-9d13-fbda59d8cb15_1653763898.4271393.png)\n
['Python', 'Python3']