Coding · Hard · ProRate limiter with SemaphoreCodingConcurrencyStaffModel answerPreviewApproachClarify constraints and edge cases for: Rate limiter with Semaphore.Choose appropriate data structure; state time/space…