Pergunta de entrevista da empresa Careem

- You are given a 2D array containing actions done by users, where each user can be active doing multiple tasks at a time, and multiple users can be active simultaneously. Return an array representing the number of users who were active x number of times. (how many users were active once, twice, etc.)