You are designing a system that tracks moderator privileges for an online community using a time-ordered log of moderation actions. Each log record captures when a user gains or loses moderator status. The system must support permission checks for removing moderators and also return the current moderator list in the correct hierarchy.
In this system, moderators have a ranking based on when they most recently became moderators. Among all active moderators, a user who became a moderator earlier has a higher level than a user who became a moderator later.
Implement the ModSystem class:
Ask AI Assistant

Ask AI Assistant
Ask me anything about this coding question!
Test Cases
Input
Output
Expected