LeetCode 1280 — Students and Examinations

Problem: