Design a rate limiter, in xAI's onsite design round. Two reports. One records the twist: each user id can use a different amount of tokens -- one user is allowed 10,000 tokens per second while a regular user gets 100. The other report is a single line: the loop had…