This problem is paper-only - see explanation for the canonical SQL solution.
Given DailyMetric(date, metric) rows (one per date, sorted) for a single dashboard, return each row with prev_metric (the previous day's metric, or null for the first row) and delta (today minus yesterday, or null for the first).
For the auto-grader: return [{ date, metric, prev_metric, delta }].