Pergunta de entrevista da empresa Sentra

Write a function that returns the user that did the most events. Function returns the most active user within 10000 last events. Function returns the most user within 5 last users.