Anthropic

Verified interview challenge

Build a bank with cashback and history

Extend one banking implementation as payments, delayed events and historical queries are introduced.

Unlock with Full Access

The challenge

Build a bank that grows from account operations into spending rankings, delayed cashback, account merges and historical balances. Your implementation carries forward as each level introduces a new requirement.

The difficulty comes from interactions between features. A payment has a later effect, a merge changes where money belongs, and a historical query must still describe the correct moment. Keep those meanings consistent as the same class evolves.

What you'll practise

  • Time-dependent state

    Keep scheduled cashback and requested operations consistent at their boundaries.

  • Account history

    Preserve the meaning of balances and payments as accounts are merged.

Your coding workspacePreview
Current partFurther parts unlock as you progress
solution.pyPython 3.13
# Build on your implementation

# Run checks for the current part

# Full starter code included
Current-part checks

Run your code to see results.

The complete sequence, starter code and checks are included with Full Access.