This problem is paper-only - see explanation for the canonical SQL solution.
Given Scores(id, score), return each score with its DENSE_RANK (no gaps after ties), sorted by rank ascending then id ascending.
For the auto-grader: return [{ id, score, rank }].