Deep in the barrow on Kolfell, the draugr Hrafnkel counts his hoard every night and has done since he died. He will let a living soul take one sack of treasure, and only if they can prove they know the hoard better than he does. His ledger is kept in the old runes, which to you look a great deal like JSON.
The fight
Four stages, each building on the last. Every stage opens with your finished code from the stage before, so you pick up where you left off. This fight draws on JSON, sorting with keys, comprehensions, sets, tuples and nested data.
Stage 1: Reading the ledger. Open the ledger and find the richest treasures.
Stage 2: By kind. Sort the hoard into its kinds.
Stage 3: The counting. Weigh and value the hoard.
Stage 4: One sack. Fill one sack with the best the barrow holds.